<div class="task1">
    <?php
    $sex = array(' ' => '-please select-', 'Female' => 'Female', 'Male' => 'Male');
    $usertype = array(' ' => '-please select-', 1 => 'admin', 0 => 'Receptionist');
    echo form_open('user/edit/' . $this->uri->segment('3'));
    echo '<div class="form-wrapper">';
    echo '<fieldset style="margin: 0 auto;width:60%;height: auto;border: 1px #ccc solid; padding:20px 15px 20px 15px;-moz-border-radius:10px;">';
    echo '<legend align="center"><div class="heading" style="margin: 0 auto;width: 100%;height: auto;border: 0px #ccc solid;text-align: center;font-size: 20px;color:#006600;">Edit  user</div></legend>';
    echo '<div style="float: right; border: 0px #ccc solid;">';
    echo anchor('user/manager', img('images/user_images/cancel.png'));
    echo '</div>';
    echo '<table align="center" width="70%">';
    foreach ($edit_data->result() as $rows) {
        echo '<tr>';
        echo '<td>UserName &nbsp;</td>';
        echo '<td>' . form_input('txtuser', $rows->use_username) . '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td>Position &nbsp;</td>';
        echo '<td>' . form_dropdown('txtposition', $usertype) . '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td>Sex &nbsp;</td>';
        echo '<td>' . form_dropdown('txtsex', $sex) . '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td>Email &nbsp;</td>';
        echo '<td>' . form_input('txtemail', $rows->use_email) . '</td>';
        echo '</tr>';
        echo '<tr>';
        echo '<td></td>';
        echo '<td>' . form_submit('btn_submit', 'Update') . form_reset('btn_reset', 'Reset') . '</td>';
        echo '</tr>';
    }
    echo '</table>';
    echo '</fieldset>';
    echo '</div>';
    echo form_close();
    ?>
</div>